Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IsComplexTextEdit property to CompletionItem #51470

Merged
merged 6 commits into from
Mar 3, 2021

Conversation

allisonchou
Copy link
Contributor

#51166 added support for override and partial method completions in LSP. However, the current approach involves looking up information via an individual completion item's property bag to see whether the completion item is an override or partial method completion. This is an incorrect approach since we should not be using the property bags to determine this information.

As a more proper solution, this PR adds a new property to the CompletionItem class named IsComplexTextEdit, which completion providers may return true for if a given completion item requires complex resolution and will potentially impact performance.

Resolves #51396.

Copy link
Contributor

@NTaylorMullen NTaylorMullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't love the name IsComplexTextEdit given it's really about understanding performance potent completion items. That being said I don't have a better suggestion

@allisonchou allisonchou merged commit 7464573 into dotnet:master Mar 3, 2021
@ghost ghost added this to the Next milestone Mar 3, 2021
@allisonchou allisonchou deleted the MakeLSPCompletionMoreRobust branch March 3, 2021 07:54
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't look up completion properties using hardcoded strings
3 participants